import java.io.PrintStream;
import java.util.Date;


public class WhyDemo {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PrintStream ps = System.out;
		int i = 3;
		float f = 5.5f;
		ps.println("int is " + i + " and f is " + f);
		ps.printf("int is %d and f is %.2f and %s", i, f, new Date());
}

}
